/*
   Ellinia VIP Cab
   Made By ups2000ups
   Grammar fixed by wackyracer
   Re-made by DejaVu
*/

void npc(Player @player, NPC @npc) {
	int state = npc.getState();
	if(player.getJob() == 0 || player.getJob() == 1000 || player.getJob() == 2000){
		int cost = 1000;
	} else {
		int cost = 10000;
	}
	if(state == 0){
		npc.addText("Hi there! This cab is for VIP customers only. Instead of just taking you to different towns like the regular cabs, we offer a much better service worthy of VIP class. It's a bit pricy, but for only #b" + cost + " mesos#k, we'll take you easily to the #bant tunnel#k");
		npc.sendNext();	
	}
	else if(state == 1){
		npc.addText("The #bAnt Tunnel#k is located deep inside the dungeon that lies at the center of Victoria Island, where the 24 Hour Mobile Store is.\r\nWould You like to go there for #b" + cost + " mesos#k?");
		npc.sendYesNo();
	}
	else if(state == 2){
		if(player.getMesos() >= cost){	
			player.giveMesos(-cost);
			player.changeMap(105070001);
		}else{
			npc.addText("Sorry but you don't have enough of mesos!");
            npc.sendOK();
		}
	} else {
		npc.addText("This town also has a lot to offer. Come back to me if you feel the need to go to the #bAnt Tunnel#k!");
		npc.sendOK();
		npc.end();
	}
}